package BanyuanClub.Work.Story.One;

public abstract class Shape {
    private double area;
    private double per;
    private String color;

    @Override
    public String toString() {
        return "Shape{" +
                "area=" + area +
                ", per=" + per +
                ", color='" + color + '\'' +
                '}';
    }

    public Shape(double area, double per, String color) {
        this.area = area;
        this.per = per;
        this.color = color;
    }

    public void setArea(double area) {
        this.area = area;
    }

    public void setPer(double per) {
        this.per = per;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Shape(String color) {
        this.color = color;
    }

    public Shape() {
    }

    public abstract double getArea();

    public abstract double getPer();

    public abstract void showAll();

    public String getColor(){
        return this.color;
    }


}
